import { IsNotEmpty } from 'class-validator'

export class queryArticleDto {
  title: string
  content: string
  @IsNotEmpty({ message: '分页参数不能为空' })
  pageNo: number
  @IsNotEmpty({ message: '分页参数不能为空' })
  pageSize: number
}
